package ssm.another;

/**
 * Created by 58296 on 2016/8/25.
 */
public class TestUnit {
/*

    ApplicationContext aCtx;
    @Before
    public void init() {
        aCtx = new ClassPathXmlApplicationContext("classpath:spring*/
/*.xml");
    }


    @Test
    public void testRegister()throws Exception{
        HomeRegisterService homeRegisterService = (HomeRegisterService) aCtx.getBean("homeRegisterService");

        User user = new User("徐利兵", "xulibing", "18813752547", 0, "2454504982@qq.com");
        user.setUser_key(user.getUser_password());
        int tag = homeRegisterService.registerUser(user);
        System.out.println(tag);
        if(tag != 0) {
            System.out.println("success");
        }
        else {
            System.out.println("fail");
        }

    }

    @Test
    public void testCheckUtil() throws Exception {
        System.out.println(CheckUtil.checkMobileFormat("1881375254"));
        System.out.println(CheckUtil.checkEmailFormat("2454504982qq.com"));
    }

    @Test
    public void testEncrypt()throws Exception{
        EncryptUtil.decrypt("bryant01bryant01","11001100110011001100110011001100");
    }
*/

}
